package com.shop.service;

import com.shop.entity.OperLog;
import com.shop.entity.User;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface OperLogService {
    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    OperLog findById(int id);

    /**
     * 分页查询所有
     *
     * @param pageable
     * @return
     */
    Page<OperLog> findAll(Pageable pageable);

    /**
     * 按条件查询
     *
     * @param example
     * @return
     */
    List<OperLog> findAllExample(Example<OperLog> example);

    /**
     * 更新
     *
     * @param operLog
     * @return
     */
    void update(OperLog operLog);

    /**
     * 创建
     *
     * @param operLog
     * @return
     */
    void create(OperLog operLog);

    /**
     * 根据Id删除
     *
     * @param id
     * @return
     */
    void delById(int id);

}
